package pers.bbw.crr.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import pers.bbw.crr.dto.base.BaseSearchDto;

import java.util.Date;

/**
 * 预约信息DTO 预约
 *
 * @author bbw
 * @date 2024-12-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "预约信息DTO", description = "查询DTO")
public class ReservationSearchDto extends BaseSearchDto {

    /**
     * 预约时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "预约开始时间")
    private Date expectStartTime;

    /**
     * 预约结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "预约结束时间")
    private Date expectFinishTime;

    /**
     * 预约时间
     */
    @ApiModelProperty(value = "预约时长（小时）")
    private Double duration;


    /**
     * 申请人id
     */
    @ApiModelProperty(value = "申请人id")
    private Integer applierId;

    /**
     * 审核结果
     */
    @ApiModelProperty(value = "审核结果（true.未通过；false.已通过）")
    private Boolean examineResult;

    /**
     * 预约场地/器材id/社团id
     */
    @ApiModelProperty(value = "预约场地/器材id")
    private Integer objectId;

    /**
     * 审核人id
     */
    @ApiModelProperty(value = "审核人id")
    private Integer examineId;

    /**
     * 申请原因
     */
    @ApiModelProperty(value = "申请原因")
    private String applyInfo;

    /**
     * 审核情况
     */
    @ApiModelProperty(value = "审核情况")
    private String examineInfo;

    /**
     * 申请状态
     */
    @ApiModelProperty(value = "申请状态（0.未申请；1.已申请；2.待审批；3.已审批）")
    private Integer state;

    /**
     * 是否需要申请
     */
    @ApiModelProperty(value = "是否需要申请（false.不需要申请；true.需要申请）")
    private Boolean examineFlag;

    /**
     * 预约类型代码
     */
    @ApiModelProperty(value = "预约类型代码（1.活动预约；2.场地预约；3.器材预约）")
    @NotNull(message = "预约类型为必填字段")
    private Integer typeCode;

}
